package com.czy.config;

import org.springframework.core.convert.converter.Converter;

/**
 * 去除前后空格
 * @author czy
 * @date 2022-1-26 11:29
 */
public class StringTrimConverter implements Converter<String,String> {
    @Override
    public String convert(String source) {
        if (source==null){
            return source;
        }
        return source.trim();
    }
}
